package com.smartfactory.sail.vo.user;

import com.smartfactory.sail.entity.enums.SexEnum;
import com.smartfactory.sail.entity.enums.UserStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 王巨壁
 * @title: AddUserReq
 * @projectName smart-sail
 * @description: 添加用户传参
 * @date 2019/8/1515:51
 */
@Data
public class AddUserReq {


    @ApiModelProperty(value = "员工编码 必传 不可重复")
    @NotBlank
    private String staffNo;

    @ApiModelProperty(value = "员工姓名 必传")
    @NotBlank
    private String username;

    @ApiModelProperty(value = "性别 男 女 必传")
    private SexEnum sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;


    @ApiModelProperty(value = "联系方式 必传")
    @NotBlank
    private String phone;

    @ApiModelProperty(value = "入职时间 yyyy-MM-dd 必传")
    private String hiredate;

    @ApiModelProperty(value = "在职状态 0：在职  1：公司请辞  2：主动离职 必传 默认在职")
    private UserStatusEnum status;

    @ApiModelProperty(value = "头像id")
    private Long headIcon;

    @ApiModelProperty(value = "所属部门id 必传")
    @NotNull
    private Long deptId;

    @ApiModelProperty(value = "岗位id 必传")
    @NotNull
    private Long post;

    @ApiModelProperty(value = "工作岗位")
    private String workType;

    @ApiModelProperty(value = "身份证号")
    @NotBlank
    private String idcard;

    @ApiModelProperty(value = "现居住地址")
    private String addr;

    @ApiModelProperty(value = "身份证正面照片id")
    private Long idcardUrl;

    @ApiModelProperty(value = "身份证反面照图片id")
    private Long idcardBackUrl;


    @ApiModelProperty(value = "合同签订时间")
    private String contractTime;
    @ApiModelProperty(value = "到期时间")
    private String contractExpireTime;

   /* @ApiModelProperty(value = "银行卡号")
    private String bank;

    @ApiModelProperty(value = "开户行")
    @TableField("openBank")
    private String openBank;*/


    @ApiModelProperty(value = "劳动合同及保密协议使用|隔开")
    private String imgs;


}
